﻿namespace WcfDataSet
{
    using WcfDataSet.OMR;

    public class DataSetService : IDataSetService
    {
        const string DUMMY_CONNECTION_STRING = "Server=.;Database=UR;Trusted_Connection=True;";
        const string DUMMY_SQL_QUERY_1 = "SELECT TOP 1 * FROM INFORMATION_SCHEMA.TABLES";

        public CustomDataSet GetData()
        {
            var dbHelper = new DummyDbHelper(DUMMY_CONNECTION_STRING);
            var dataSet = dbHelper.FillDataSet(DUMMY_SQL_QUERY_1);

            return dataSet.GenerateCustom();
        }

    }
}